package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLImage;
import HLLib.base.HLString;
import HLLib.social.HLSocial;

public class HLClassSocial extends HLLibClass {
    public HLClassSocial(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLSocial();
    }

    public void StaticExecute(int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            HLSocial.CommentInAppStore();
            break;
        }
        case 1: {
            HLSocial.ConnectToGameInAppStoreByAppNameAndId((HLString)args.GetObject(0), (HLString)args.GetObject(1));
            break;
        }
        case 2: {
            HLSocial.OpenUrl((HLString)args.GetObject(0));
            break;
        }
        case 3: {
            HLSocial.SendFeed((HLString)args.GetObject(0), (HLImage)args.GetObject(1), (HLString)args.GetObject(2));
            break;
        }
        }
    }
}
